package com.kehutong.wxapi.response;

import org.coraframework.json.annotation.JSONField;

import java.util.List;

/**
 * 分配离职成员的客户群响应对象
 * @author: liukunlong
 * @date: 2021-03-05 09:30
 */
public class GroupChatTransferResponse {

    /**
     * errcode
     */ /**
     * errcode : 0
     * errmsg : ok
     * failed_chat_list : [{"chat_id":"wrOgQhDgAAcwMTB7YmDkbeBsgT_KAAAA","errcode":90500,"errmsg":"the owner of this chat is not resigned"}]
     */

    @JSONField(name = "errcode")
    private Integer errcode;
    /**
     * errmsg
     */
    @JSONField(name = "errmsg")
    private String errmsg;
    /**
     * failedChatList
     */
    @JSONField(name = "failed_chat_list")
    private List<FailedChatListDTO> failedChatList;

    public Integer getErrcode() {
        return errcode;
    }

    public void setErrcode(Integer errcode) {
        this.errcode = errcode;
    }

    public String getErrmsg() {
        return errmsg;
    }

    public void setErrmsg(String errmsg) {
        this.errmsg = errmsg;
    }

    public List<FailedChatListDTO> getFailedChatList() {
        return failedChatList;
    }

    public void setFailedChatList(List<FailedChatListDTO> failedChatList) {
        this.failedChatList = failedChatList;
    }

    public static class FailedChatListDTO {
        /**
         * chatId
         */ /**
         * chat_id : wrOgQhDgAAcwMTB7YmDkbeBsgT_KAAAA
         * errcode : 90500
         * errmsg : the owner of this chat is not resigned
         */

        @JSONField(name = "chat_id")
        private String chatId;
        /**
         * errcode
         */
        @JSONField(name = "errcode")
        private Integer errcode;
        /**
         * errmsg
         */
        @JSONField(name = "errmsg")
        private String errmsg;

        public String getChatId() {
            return chatId;
        }

        public void setChatId(String chatId) {
            this.chatId = chatId;
        }

        public Integer getErrcode() {
            return errcode;
        }

        public void setErrcode(Integer errcode) {
            this.errcode = errcode;
        }

        public String getErrmsg() {
            return errmsg;
        }

        public void setErrmsg(String errmsg) {
            this.errmsg = errmsg;
        }
    }
}
